<%--
  Created by IntelliJ IDEA.
  User: M1523
  Date: 2025/3/21
  Time: 15:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
    <style>
        body {
            font-family: '楷体', 'KaiTi', sans-serif; /* 修改字体为楷体 */
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background-image: url("${pageContext.request.contextPath}/images/980.jpg");
            background-size: cover;
            background-position: center;
        }
        .login-container {
            background-color: rgba(255, 255, 255, 0.9); /* 半透明背景 */
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
            width: 300px;
            text-align: center;
        }
        .login-container h2 {
            margin-bottom: 20px;
            color: #333;
        }
        .login-container input[type="text"],
        .login-container input[type="password"] {
            width: calc(100% - 22px);
            padding: 10px 10px;
            margin: 10px 0;
            border: none; /* 去掉所有边框 */
            border-bottom: 1px solid #ccc; /* 只显示底边 */
            background-color: transparent; /* 透明背景 */
            backdrop-filter: blur(5px); /* 模糊效果 */
            transition: border-color 0.3s, font-size 0.3s, transform 0.3s;
            font-size: 16px;
            color: #333; /* 修改文本颜色为对比明显的颜色 */
        }
        .login-container input[type="text"]:focus,
        .login-container input[type="password"]:focus {
            border-color: #28a745;
            outline: none;
        }
        .login-container input[type="text"]::placeholder,
        .login-container input[type="password"]::placeholder {
            color: #999;
        }
        .login-container input[type="submit"] {
            width: 100%;
            padding: 10px;
            background-color: #28a745;
            border: none;
            border-radius: 5px;
            color: white;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        .login-container input[type="submit"]:hover {
            background-color: #218838;
        }
        .login-container input[type="submit"]:active {
            background-color: #1e7e34;
        }
        .icon {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
        }
        .input-with-icon {
            position: relative;
        }
        .input-with-icon input {
            padding-left: 30px;
        }
        .input-with-icon:hover input {
            font-size: 14px; /* 字体变小 */
            transform: translateY(-5px); /* 向上滑动 */
        }
    </style>
</head>
<body>
<div class="login-container">
    <h2>登录</h2>
    <form action="${pageContext.request.contextPath}/userqtDeng" method="post">
        <div class="input-with-icon">
            <i class="fas fa-user icon"></i>
            <input type="text" name="user_name" placeholder="用户名" required>
        </div>
        <div class="input-with-icon">
            <i class="fas fa-lock icon"></i>
            <input type="password" name="user_pass" placeholder="密码" required>
        </div>
        <input type="submit" value="登录">
    </form>
</div>
</body>
</html>
